﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ly
{
    class Animal
    {
        public string leg { get; set; }
        public string eat { get; set; }
        public string sleep { get; set; }
        public string jiao { get; set; }

        public Animal() { }

        public Animal(string leg, string eat, string sleep, string jiao)
        {
            this.leg = leg;
            this.eat = eat;
            this.sleep = sleep;
            this.jiao = jiao;
        }
        public void Leg()
        {
            Console.WriteLine("我会走！");
        }
        public void Eat()
        {
            Console.WriteLine("我会吃！");
        }
        public void Sleep()
        {
            Console.WriteLine("我会睡觉！");
        }
        public virtual void Jiao()
        {
                 
            Console.WriteLine("我会叫！");
        }
    }
}
